﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Frontend.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Quảng Cáo
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <% 
        Advertising obj = (Advertising)ViewData.Model; 
        //string urlImage = Constants.UPLOAD_ADV_IMAGE_PATH + obj.Image;
        //System.Drawing.Image objImage = System.Drawing.Image.FromFile(Server.MapPath(urlImage));
        //int[] scaleSize = CommonFunc.ResizeImage(objImage.Width, objImage.Height, 590, 200);
    %>
    <div class="cmbox">
        <div class="ctitle"><%=obj.Title%></div>
        
        <div class="ccon">
            <%--<img src='<%=urlImage%>' width='<%=scaleSize[0]%>' height='<%=scaleSize[1]%>' title='<%=obj.Title%>' alt='<%=obj.Title%>' />--%>
          
            <%=CommonFunc.SetHtmlForCKEditor(obj.Description)%>
        
        </div>
    </div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
